package com.sir.tao.carhire.exception;

import com.sir.tao.carhire.common.CommonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dyy
 * @data 2021/12/8 14:30
 * @description: 异常处理Controller
 */
@RestController
public class ExceptionController {

    /**
     * 异常处理接口
     */
    @RequestMapping("/authenticationException")
    public CommonResult<?> expiredJwtException() {
        return CommonResult.fail("认证失败，请重新登录");
    }
}
